<%@tag description="Item Field input tag" pageEncoding="UTF-8"%>
<%@ include file="/taglibs.jsp" %>

<%@attribute name="name" required="true"%>
<%@attribute name="description" required="true"%>


<c:set var="_itempopupcnt" value="${_itempopupcnt + 1}" scope="request"/>
<c:set var="_itempopupfield" value="_itempopupfield${_itempopupcnt}"/>
<s:text readonly="true" id="${_itempopupfield}" name="${name}" size="20"/>
<c:url var="url" value="CatalogPicker.action" >
    <c:param name="field" value="${_itempopupfield}"/>
</c:url>
<%--<t:imgbtn src="imgs/search.gif" onclick="return popUpWindow('${url}','${_itempopupfield}', 300, 428)" alt="Find Item"/> --%>
<!-- <input type="button" value="Select Item" onclick="return popUpWindow('${url}','${_itempopupfield}')"> -->
<t:imgbtn src="imgs/search.gif" onclick="return showItemModal('${url}', 428, 300, '${_itempopupfield}');" alt="Find Item"/>
<button type="button" onclick="return resetItem('${_itempopupfield}');">Reset</button>
<div id="${_itempopupfield}_desc">${description}</div>